from rest_framework_jwt.views import obtain_jwt_token
from django.urls import re_path, path
from apps.users import views
from .views import *



urlpatterns = [
    re_path(r'^authorizations/$', obtain_jwt_token),
    re_path(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view()),
    path('users/', RegisterView.as_view({
        "post": "create"
    })),
    re_path(r'^user/$', InfoView.as_view()),
    re_path(r'^user/password/$', ChangePasswordView.as_view()),
    re_path(r'^user/like/(?P<id>\d+)$', LikeView.as_view()),
    path('upload/avatar/', AvatarView.as_view()),
    path('upload/common/', CommonView.as_view()),
    re_path(r'^user/label/$', UpdatelabelView.as_view()),
]